<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者，助力中小企业发展
// +----------------------------------------------------------------------
// | Copyright (c) 2017～2024  www.wdadmin.cn    All rights reserved.
// +----------------------------------------------------------------------
// | Wdadmin系统产品软件并不是自由软件，不加密，并不代表开源，未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn>   www.wdadmin.cn
// +----------------------------------------------------------------------
/**
 * Class Driver
 * Desc  司机校验
 * Create on 2024/10/30 17:00
 * Create by wangyafang
 */

namespace app\api\validate\wddj\driver;


use think\Validate;

class Driver extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'driver_lng'=>'require',
        'driver_lat'=>'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'driver_lng.require'=>'司机位置经度不能空',
        'driver_lat.require'=>'司机位置纬度不能空',
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'update_lng_lat'  => ['driver_lng','driver_lat'],
    ];
}



 